import request from '@/utils/request'

// 查询外聘表列表
export function listEcontract(query) {
  return request({
    url: '/system/econtract/list',
    method: 'get',
    params: query
  })
}

// 查询外聘表详细
export function getEcontract(id) {
  return request({
    url: '/system/econtract/' + id,
    method: 'get'
  })
}

// 新增外聘表
export function addEcontract(data) {
  return request({
    url: '/system/econtract',
    method: 'post',
    data: data
  })
}

// 修改外聘表
export function updateEcontract(data) {
  return request({
    url: '/system/econtract',
    method: 'put',
    data: data
  })
}

// 删除外聘表
export function delEcontract(id) {
  return request({
    url: '/system/econtract/' + id,
    method: 'delete'
  })
}
